﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CircuitBreaker
{
    public class CircuitBreakerSettings
    {
        public CircuitBreakerSettings(string name,int threshold,long periodToHalfOpen,long failuresResetPeriod)
        {
            this._threshold = threshold;
            this._failuresResetPeriod = failuresResetPeriod;
            this._periodToHalfOpen = periodToHalfOpen;
            this.Name = name;
            
        }

        public string Name { get; private set; }

        int _threshold;

        public int Threshold
        {
            get { return _threshold; }
        }
        long _periodToHalfOpen;

        public long PeriodToHalfOpen
        {
            get { return _periodToHalfOpen; }
        }
        long _failuresResetPeriod;

        public long FailuresResetPeriod
        {
            get { return _failuresResetPeriod; }
        }
    }
}
